import { createStore } from "vuex";

const countModule = {
  namespaced: true,
  state: {
    count: 1,
  },
  mutations: {
    add(state) {
      state.count++;
    },
  },
};

const store = createStore({
  modules: {
    index: countModule,
  },
});

export default store;
